package zuoye.test2;

public class Dog  extends  Animal{

    public Dog(String breed, String color, String name, int age) {
        super(breed, color, name, age);
    }

    @Override
    public void eat() {
        System.out.println(getColor()+"色的"+getBreed()+"小狗，今年"+getAge()+"岁了，它名叫"+getName()+"，它正在吃骨头。");

    }

    public void lookHome(){
        System.out.println(getColor()+"色的"+getBreed()+"小狗，今年"+getAge()+"岁了，它名叫"+getName()+"，它的技能是看家护院。");
    }
}
